<?php
// gyxj_tasksModel.php
class gyxj_tasksModel extends spModel
{
    public $pk = "task_id";
    public $table = "gyxj_tasks";

    /**
     * 获取可用任务列表
     * @return array
     */
    public function getAvailableTasks()
    {
        return $this->findAll(['status' => 1], 'created_at DESC');
    }
}